<template>
  <div id="app">
    <nav>
      <router-link to="/province">省份</router-link>
      <router-link to="/country">国家</router-link>
      <router-link to="/">首页</router-link>
      <router-link to="/chart">图表</router-link>
      <router-link to="/tree">树结构</router-link>
    </nav>
    <router-view />
  </div>
</template>

<style lang="scss">
div {
  box-sizing: border-box;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;
    margin-left: 15px;
    text-decoration: none;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}

body {
  height: 98vh !important;
  background-color: #dcdfe6 !important;
}

.main {
  width: 80vw;
  height: 80vh;
  margin: 20px auto 0;
  background-color: #fff;
  border-radius: 30px;
}
</style>
